#ifndef BTFROM_H
#define BTFROM_H

#include <QWidget>
#include <QPropertyAnimation>

namespace Ui {
class BTFrom;
}

class BTFrom : public QWidget
{
    Q_OBJECT

public:
    explicit BTFrom(QWidget *parent = nullptr);
    ~BTFrom();
    void seticon(QString btIcon,QString content,int Id);
    int GetId();
    void clearBackground();
    void showAnaimal(bool isShow);
protected:
    void mousePressEvent(QMouseEvent *event);
signals:
    void BtClick(int id);

private:
    Ui::BTFrom *ui;
    int id = 0;
    QPropertyAnimation* animal1;
    QPropertyAnimation* animal2;
    QPropertyAnimation* animal3;
    QPropertyAnimation* animal4;
};

#endif // BTFROM_H
